package qianting.news.article;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import qianting.news.cache.CacheService;

@SpringBootTest(classes = ArticleApplication.class)
@RunWith(SpringRunner.class)
public class test {

    @Autowired
    private CacheService cacheService;

    @Test
    public void test(){

        cacheService.set("name", "tzx");
        System.out.println(cacheService.get("name"));

    }

}
